package cn.hjm.org.mapper;

import cn.hjm.org.domain.Department;
import cn.hjm.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //新增一条部门数据
    void save(Department department);
    //修改一条部门
    void update(Department department);
    //删除
    void delete(Long id);
    //根据id查询单条数据
    Department loadById(Long id);
    //查询所有的部门数据
    List<Department>loadAll();

    /**
     * 分页+高级查询
     */
    Long queryCount(DepartmentQuery query);
    List<Department>loadByQuery(DepartmentQuery query);
}
